package model;

/**
 * The warning may be returned by some Moodle Web-services functions.
 *
 * @author Gennady Kolomoets
 */
public class MoodleWarning {

    private long itemid;
    private String item;
    private String warningcode;
    private String message;

    public MoodleWarning() {
    }

    public MoodleWarning(long itemid, String item, String warningcode, String message) {
        this.itemid = itemid;
        this.item = item;
        this.warningcode = warningcode;
        this.message = message;
    }

    public long getItemid() {
        return itemid;
    }

    public void setItemid(long itemid) {
        this.itemid = itemid;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getWarningcode() {
        return warningcode;
    }

    /**
     * The warning code can be used by the client app to implement specific
     * behaviour.
     *
     * @param warningcode
     */
    public void setWarningcode(String warningcode) {
        this.warningcode = warningcode;
    }

    /**
     * Untranslated english message to explain the warning.
     *
     * @return warning message
     */
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
